using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class TeamInfo
    {
        #region CONSTRUCTORS
        public TeamInfo()
        {

            this.m_teamID = Util.NULL_LONG;
            this.m_teamName = Util.NULL_STRING;
            this.m_teamNameShort = Util.NULL_STRING;
            this.m_foundedDate = Util.NULL_STRING;
            this.m_shirtColor = Util.NULL_STRING;
            this.m_website = Util.NULL_STRING;
            this.m_stadium = Util.NULL_STRING;
            this.m_coach = Util.NULL_STRING;
            this.m_logoPath = Util.NULL_STRING;
            this.m_uniformPath = Util.NULL_STRING;
            this.m_info = Util.NULL_STRING;
            this.m_createdBy = Util.NULL_STRING;
            this.m_createdDate = Util.NULL_DATETIME;
            this.m_type = Util.NULL_BYTE;
            this.m_status = Util.NULL_BYTE;
        }
        public TeamInfo(long teamID, string teamName, string teamNameShort, string foundedDate, string shirtColor, string website, string stadium, string coach, string logoPath, string uniformPath, string info, string createdBy, DateTime createdDate, byte type, byte status)
        {

            this.m_teamID = teamID;
            this.m_teamName = teamName;
            this.m_teamNameShort = teamNameShort;
            this.m_foundedDate = foundedDate;
            this.m_shirtColor = shirtColor;
            this.m_website = website;
            this.m_stadium = stadium;
            this.m_coach = coach;
            this.m_logoPath = logoPath;
            this.m_uniformPath = uniformPath;
            this.m_info = info;
            this.m_createdBy = createdBy;
            this.m_createdDate = createdDate;
            this.m_type = type;
            this.m_status = status;
        }
        public TeamInfo(DataRow dRow)
        {

            this.m_teamID = (long)Util.ReplaceDBNullTo(dRow["teamID"], Util.NULL_LONG);
            this.m_teamName = Util.ReplaceDBNullTo(dRow["teamName"], Util.NULL_STRING).ToString();
            this.m_teamNameShort = Util.ReplaceDBNullTo(dRow["teamNameShort"], Util.NULL_STRING).ToString();
            this.m_foundedDate = Util.ReplaceDBNullTo(dRow["foundedDate"], Util.NULL_STRING).ToString();
            this.m_shirtColor = Util.ReplaceDBNullTo(dRow["shirtColor"], Util.NULL_STRING).ToString();
            this.m_website = Util.ReplaceDBNullTo(dRow["website"], Util.NULL_STRING).ToString();
            this.m_stadium = Util.ReplaceDBNullTo(dRow["stadium"], Util.NULL_STRING).ToString();
            this.m_coach = Util.ReplaceDBNullTo(dRow["coach"], Util.NULL_STRING).ToString();
            this.m_logoPath = Util.ReplaceDBNullTo(dRow["logoPath"], Util.NULL_STRING).ToString();
            this.m_uniformPath = Util.ReplaceDBNullTo(dRow["uniformPath"], Util.NULL_STRING).ToString();
            this.m_info = Util.ReplaceDBNullTo(dRow["info"], Util.NULL_STRING).ToString();
            this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
            this.m_createdDate = (DateTime)Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
            this.m_type = (byte)Util.ReplaceDBNullTo(dRow["type"], Util.NULL_BYTE);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private long m_teamID;
        private string m_teamName;
        private string m_teamNameShort;
        private string m_foundedDate;
        private string m_shirtColor;
        private string m_website;
        private string m_stadium;
        private string m_coach;
        private string m_logoPath;
        private string m_uniformPath;
        private string m_info;
        private string m_createdBy;
        private DateTime m_createdDate;
        private byte m_type;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public long TeamID
        {
            get
            {
                return this.m_teamID;
            }
            set
            {
                this.m_teamID = value;
            }
        }

        public string TeamName
        {
            get
            {
                return this.m_teamName;
            }
            set
            {
                this.m_teamName = value;
            }
        }

        public string TeamNameShort
        {
            get
            {
                return this.m_teamNameShort;
            }
            set
            {
                this.m_teamNameShort = value;
            }
        }

        public string FoundedDate
        {
            get
            {
                return this.m_foundedDate;
            }
            set
            {
                this.m_foundedDate = value;
            }
        }

        public string ShirtColor
        {
            get
            {
                return this.m_shirtColor;
            }
            set
            {
                this.m_shirtColor = value;
            }
        }

        public string Website
        {
            get
            {
                return this.m_website;
            }
            set
            {
                this.m_website = value;
            }
        }

        public string Stadium
        {
            get
            {
                return this.m_stadium;
            }
            set
            {
                this.m_stadium = value;
            }
        }

        public string Coach
        {
            get
            {
                return this.m_coach;
            }
            set
            {
                this.m_coach = value;
            }
        }

        public string LogoPath
        {
            get
            {
                return this.m_logoPath;
            }
            set
            {
                this.m_logoPath = value;
            }
        }

        public string UniformPath
        {
            get
            {
                return this.m_uniformPath;
            }
            set
            {
                this.m_uniformPath = value;
            }
        }

        public string Info
        {
            get
            {
                return this.m_info;
            }
            set
            {
                this.m_info = value;
            }
        }

        public string CreatedBy
        {
            get
            {
                return this.m_createdBy;
            }
            set
            {
                this.m_createdBy = value;
            }
        }

        public DateTime CreatedDate
        {
            get
            {
                return this.m_createdDate;
            }
            set
            {
                this.m_createdDate = value;
            }
        }

        public byte Type
        {
            get
            {
                return this.m_type;
            }
            set
            {
                this.m_type = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}